﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiquidTrading.LiquidViewSyncTool
{
    public class LiquidViewConstants
    {



        public enum SyncSource
        {
            CHIX,
            BATE,
            TRQX
        }

        public static bool TryGetTickSizeName(SyncSource source, string sourceName, out string tickSizeName)
        {
            tickSizeName = String.Empty;

            if (source == SyncSource.CHIX)
            {
                switch (sourceName)
                {
                    case "FESE1":
                        tickSizeName = "FESE1";
                        return true;
                    case "FESE2":
                        tickSizeName = "FESE2";
                        return true;
                    case "CPH1":
                        tickSizeName = "CHP1";
                        return true;
                    case "CPH2":
                        tickSizeName = "CHP2";
                        return true;
                    case "EUZ1":
                        tickSizeName = "EUROZONE1";
                        return true;
                    case "LON1":
                        tickSizeName = "FESE2";
                        return true;
                    case "LON2":
                        tickSizeName = "FESE2";
                        return true;
                    case "LON3":
                        tickSizeName = "FESE2";
                        return true;
                    case "MAD1":
                        tickSizeName = "FESE2";
                        return true;
                    case "MIL1":
                        tickSizeName = "FESE2";
                        return true;
                    case "OSL1":
                        tickSizeName = "FESE2";
                        return true;
                    case "OSL2":
                        tickSizeName = "FESE2";
                        return true;
                    case "OSL3":
                        tickSizeName = "FESE2";
                        return true;
                    case "STO1":
                        tickSizeName = "STO1";
                        return true;
                    case "VTX1":
                        tickSizeName = "VTX1";
                        return true;
                    default:
                        return false;
                }
            }
                
            
            throw new ApplicationException("SyncSource unhandled");            
        }



    }
}
